package com.pithypan.convert;


import com.pithypan.entity.UserInfo;
import com.pithypan.vo.RegisterVo;
import org.mapstruct.factory.Mappers;

/**
 *  RegisterVo To UserInfo
 */
@org.mapstruct.Mapper     //对象属性的映射（vo对象和dto对象之间的相同属性才会进行映射）
public interface RegisterVoConvert {

    RegisterVoConvert INSTANCE = Mappers.getMapper(RegisterVoConvert.class);


    //vo 转 entity
    UserInfo vo2entity(RegisterVo registerVo);


    //entity 转 vo
    RegisterVo entity2vo(UserInfo userInfo);

}
